﻿using PoliAsis.Domain.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PoliAsis.Domain.Entities
{
    public class CourseExam : BaseObject
    {
        public int? academic_year { get; set; }
        public int? courseid { get; set; }
        public int? classroomid { get; set; }
        public DateTime? strat_reg_date { get; set; }
        public DateTime? stop_reg_date { get; set; }
        public DateTime? exam_datetime { get; set; }

        [NonPersistent]
        public bool already_registered { get; set; }

        [NonPersistent]
        public string classroom_name { get; set; }

        [NonPersistent]
        public string strat_reg_date_str
        {
            get
            {
                return this.strat_reg_date != null ? this.strat_reg_date.Value.ToString("dd.MM.yyyy") : "";
            }
            set
            {

            }
        }

        [NonPersistent]
        public string stop_reg_date_str
        {
            get
            {
                return this.stop_reg_date != null ? this.stop_reg_date.Value.ToString("dd.MM.yyyy") : "";
            }
            set
            {

            }
        }

        [NonPersistent]
        public string exam_datetime_str 
        {
            get
            {
                return this.exam_datetime != null ? this.exam_datetime.Value.ToString("dd.MM.yyyy HH:mm") : "";
            }
            set
            {

            }
        }
        [NonPersistent]
        public string course_name { get; set; }

        [NonPersistent]
        public bool? notification_set { get; set; }


    }
}
